<?php
/*
 * General Functions
 * 
 * Mainly used functions
 * 
 * @author : Jason Meulenhoff
 * @mail : mail@kacangboi.com
 * @web : http://kacangboi.com
 * @copyright : KacangNetworks 2010
 * 
 */

function generateMenu()
{
	if($_SESSION['admin'])
	{
		return "
		<ul>
			<li>Navigation Menu</li>
			<ul>
				<li><a href='home.controller.php'>Home</a></li>
				<li><a href='live.controller.php'>Live Webcasts</a></li>
				<li><a href='video.controller.php'>Video On Demand</a></li>
				<li><a href='admin.controller.php'>Admin Panel</a></li>
				<li><a href='index.controller.php?action=logout'>Logout</a></li>
				<li></li>
			</ul>
		</ul>";
	}
	else
	{
		return "
		<ul>
			<li>Navigation Menu</li>
			<ul>
				<li><a href='home.controller.php'>Home</a></li>
				<li><a href='live.controller.php'>Live Webcasts</a></li>
				<li><a href='video.controller.php'>Video On Demand</a></li>
				<li><a href='index.controller.php?action=logout'>Logout</a></li>
				<li></li>
			</ul>
		</ul>";
	}
}